//
//  SinaHomeTableViewCell.swift
//  weibo
//
//  Created by liuchao on 16/1/25.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

class SinaHomeTableViewCell: UITableViewCell {

    
    var statusViewModel: SinaStatusViewModel?{
        //
        didSet{
            
            originalView.orginalViewModel = statusViewModel
            
        }
    }
    
    lazy var originalView: SinaOriginalView = SinaOriginalView()
    
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        setupUI();
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    func setupUI(){
    
    
        contentView.addSubview(originalView)
        
        // 添加约束
        originalView.snp_makeConstraints { (make) -> Void in
            make.left.equalTo(contentView.snp_left)
            make.top.equalTo(contentView.snp_top)
            make.width.equalTo(contentView.snp_width)
            make.bottom.equalTo(contentView.snp_bottom)

        }
        
        
    }


}
